﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PrintStockIn.aspx.cs" Inherits="Manage_PrintStockIn" %>
<%@ Import Namespace="Shopping.Common" %>
<%@ Import Namespace="Shopping.Model" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>查看打印入库单</title>
	<link href="/Manage/css/manage.css" rel="stylesheet"  />
</head>
<body>
<center>
    <table width="850" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
      <tr>
        <td colspan="4" class="HeadTitle">&gt;&gt;入库单基本信息</td>
      </tr>
      <tr>
        <td width="103" align="right">入库单号：</td>
        <td colspan="3">&nbsp;<%=data.InsInfo.StockInID %></td>
      </tr>
      <tr>
        <td align="right">供货商：</td>
        <td width="230">&nbsp;<%=data.SupplierName %></td>
        <td width="108" align="right">库房：</td>
        <td width="259">&nbsp;<%=data.StoreName %></td>
      </tr>
      <tr>
        <td align="right">入库日期：</td>
        <td>&nbsp;<%=data.InsInfo.EnterDate.ToString("yyyy-MM-dd") %></td>
        <td align="right">订购日期：</td>
        <td>&nbsp;<%=data.InsInfo.OrderDate.ToString("yyyy-MM-dd") %></td>
      </tr>
      <tr>
        <td align="right">采购员：</td>
        <td>&nbsp;<%=data.InsInfo.Buyer%></td>
        <td align="right">采购人手机号：</td>
        <td>&nbsp;<%=data.InsInfo.BuyerTel %></td>
      </tr>
      <tr>
        <td align="right">运输员：</td>
        <td>&nbsp;<%=data.InsInfo.YunshuYuan %></td>
        <td align="right">运输人手机号：</td>
        <td>&nbsp;<%=data.InsInfo.YunshuYuanTel %></td>
      </tr>
      <tr>
        <td align="right">采购合同编号：</td>
        <td colspan="3">&nbsp;<%=data.InsInfo.ContractCSN %></td>
      </tr>
      <tr>
        <td align="right">付款说明：</td>
        <td colspan="3">&nbsp;<%=data.InsInfo.PayMemo %></td>
      </tr>
      <tr>
        <td align="right">入库状态：</td>
        <td colspan="3">&nbsp;<%=data.InsInfo.Status %></td>
      </tr>
      <tr>
        <td align="right">备注：</td>
        <td colspan="3">&nbsp;<%=data.InsInfo.Remark %></td>
      </tr>
     
    </table>
    <table width="850" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
  <tr>
    <td colspan="6" class="HeadTitle">&gt;&gt;商品明细 </td>
  </tr>
  <tr>
    <td align="center">编号</td>
    <td align="center">商品名称</td>
    <td align="center">单价</td>
    <td align="center">数量</td>
    <td align="center">金额</td>
    <td align="center">备注</td>
    </tr>
    <%
        int totalQuantity = 0;
        decimal totalMoney = 0.00M;
        for (int i = 0; i < data.Lines.Count; ++i)
        {
            totalQuantity += data.Lines[i].LineInfo.Quantity;
            totalMoney += data.Lines[i].LineInfo.SumMoney;
      %>
  <tr>
    <td align="center"><%=i+1 %>.</td>
    <td align="center"><%=data.Lines[i].GoodsName %></td>
    <td align="center"><%=data.Lines[i].LineInfo.Price.ToString("C") %></td>
    <td align="center"><%=data.Lines[i].LineInfo.Quantity %></td>
    <td align="center"><%=data.Lines[i].LineInfo.SumMoney.ToString("C") %>&nbsp;</td>
    <td align="center"><%=data.Lines[i].LineInfo.Memo %>&nbsp;</td>
    </tr>
    <%} %>
  <tr>
    <td colspan="3" align="right">&nbsp;</td>
    <td align="center"><%=totalQuantity %></td>
    <td align="center"><%=totalMoney.ToString("C") %></td>
    <td align="center">&nbsp;</td>
    </tr>
</table>
  </center>
</body>
</html>
